package top.likeqc.blog.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import top.likeqc.blog.pojo.Type;

import java.util.List;

/**
 * @author likeqc.top
 * @date 2021/4/16 18:44
 */
public interface TypeService {
    /**
     * 新增
     * @param type Type分类实体对象
     * @return
     */
    Type saveType(Type type);

    Type getType(Long id);

    Type getTypeByName(String name);

    Page<Type> listType(Pageable pageable);

    List<Type> listType();

    Type updateType(Long id, Type type);

    void deleteType(Long id);
}
